package com.simon.netty.demo1;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPromise;

/**
 * Created by changf on 2017/7/14.
 */
public class EchoServerOut1handler extends ChannelOutboundHandlerAdapter {


    @Override
    public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {

        System.out.println("server out 1");
        System.out.println(msg);
        ctx.write(msg);
        ctx.flush();

    }
}
